const http = require('http')
const config = require('../config/app.njs')
const router = require('../routes/api.njs')

const proxy = http.createServer((req, res) => {
  res.statusCode = 200
  res.statusMessage = 'OK'
  res.end('请求成功')
})

proxy.listen(config.port, config.hostname, () => {
  console.log(`server running on port ${config.port}`)
})
